<div class="tinhs view">
<h2><?php  __('Tinh');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $tinh['Tinh']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tinhtp'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $tinh['Tinh']['tinhtp']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Sửa thông tin Tỉnh/TP', true), array('action' => 'edit', $tinh['Tinh']['id'])); ?> </li>
		<li><?php echo $html->link(__('Xóa Tỉnh/TP', true), array('action' => 'delete', $tinh['Tinh']['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $tinh['Tinh']['id'])); ?> </li>
		<li><?php echo $html->link(__('Danh mục Tỉnh/TP', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm Tỉnh/TP', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh mục Quận/Huyện', true), array('controller' => 'quans', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm Quận/Huyện', true), array('controller' => 'quans', 'action' => 'add')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php  __('Related Quans');?></h3>
	<?php if (!empty($tinh['Quan'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $tinh['Quan']['id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tinh Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $tinh['Quan']['tinh_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Quanhuyen');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $tinh['Quan']['quanhuyen'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $html->link(__('Sửa thông tin Quận/Huyện', true), array('controller' => 'quans', 'action' => 'edit', $tinh['Quan']['id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Quans');?></h3>
	<?php if (!empty($tinh['Quan'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Tinh Id'); ?></th>
		<th><?php __('Quanhuyen'); ?></th>
		<th class="actions"><?php __('Thao tác');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($tinh['Quan'] as $quan):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $quan['id'];?></td>
			<td><?php echo $quan['tinh_id'];?></td>
			<td><?php echo $quan['quanhuyen'];?></td>
			<td class="actions">
				<?php echo $html->link(__('Hiển thị', true), array('controller' => 'quans', 'action' => 'view', $quan['id'])); ?>
				<?php echo $html->link(__('Sửa', true), array('controller' => 'quans', 'action' => 'edit', $quan['id'])); ?>
				<?php echo $html->link(__('Xóa', true), array('controller' => 'quans', 'action' => 'delete', $quan['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $quan['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('Thêm Quận/Huyện', true), array('controller' => 'quans', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
